home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / Watcher / build_str.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-14  |  411 b   |  26 lines

  1. /*
  2.    build_str: build a string format structure for the parser.
  3.  
  4.    Kenneth Ingham
  5.  
  6.    Copyright (C) 1988 The University of New Mexico
  7. */
  8.  
  9. #include "defs.h"
  10. #include "y.tab.h"
  11.  
  12. struct change_fmt_st *
  13. build_str(string, sarray)
  14. char **sarray;
  15. char *string;
  16.     struct change_fmt_st *p;
  17.  
  18.     p = allocate(struct change_fmt_st);
  19.     p->name = string;
  20.     p->fmt.type = STRING;
  21.     p->fmt.fmt.str_value = sarray;
  22.  
  23.     return p;
  24. }
  25.